package com.cskaoyan.bean;

import com.cskaoyan.bean.params.AdminListBO;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @USER: cuiweiguo#
 * @DATE: 2022/5/5
 * @TIME: 21:06
 * @PROJECT_NAME: mallproject2
 */
@NoArgsConstructor
@Data
public class RoleListBean {
    private Integer total;
    private Integer pages;
    private Integer limit;
    private Integer page;
    private List<Role> list;

    public static RoleListBean data(long total, Integer pages, Integer limit, Integer page, List list) {
        RoleListBean roleData = new RoleListBean();
        roleData.setTotal((int) total);
        roleData.setPages(pages);
        roleData.setPage(page);
        roleData.setLimit(limit);
        roleData.setList(list);
        return roleData;
    }
}
